package com.woniuxy.personal.core.service;

import com.woniuxy.personal.core.model.PlOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.personal.core.model.PlOrderitem;
import com.woniuxy.personal.core.vo.OrderVo;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author gmx
 * @since 2021-06-29
 */
public interface PlOrderService extends IService<PlOrder> {


    String createOrder(OrderVo orderVo);

    List<OrderVo> selectOrder(int user_id);

    List<OrderVo> selectNonpaymentOrderList(int user_id);

    List<OrderVo> selectPaidOrderList(int user_id);

    List<OrderVo> selectNonServiceOrderList(int user_id);

    List<OrderVo> selectNonAppraiseOrderList(int user_id);

    List<OrderVo> selectNonAfterServiceOrderList(int user_id);

    List<OrderVo> selectFinishedOrderList(int user_id);

    int payOrder(int id,int user_id);

    int confirm(int id,int user_id);

    int cancelOrder(int user_id,int id);

    String selectOrderNumber(int id);

    Date selectTimeByOrderId(Integer orderId);
}
